<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script type="module">
      import importHTML from "import-html-entry";
      importHTML('./sub.html').then(async res => {
        console.log(res.template);
        const style = await res.getExternalStyleSheets()
        console.log(style);
        const js = await res.getExternalScripts()
        console.log(js);
        // console.log(res.execScripts);
      })
    </script>
  </body>
</html>
